/// 当前页结果集
class WriteoffOrderHisStatisticsPageResponseDto {
  /// 核销人
  final String? writeoffBy;
  /// 卡种类
  final String? cardType;
  /// 卡分类
  final String? cardCategory;
  /// 总额度
  final int? totalCardAmount;
  /// 总价值
  final int? totalCashValue;
  /// 核销结果，1通过，0拒绝
  final int? writeoffResult;

  WriteoffOrderHisStatisticsPageResponseDto({
    this.writeoffBy,
    this.cardType,
    this.cardCategory,
    this.totalCardAmount,
    this.totalCashValue,
    this.writeoffResult,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (writeoffBy != null) data['writeoffBy'] = writeoffBy;
    if (cardType != null) data['cardType'] = cardType;
    if (cardCategory != null) data['cardCategory'] = cardCategory;
    if (totalCardAmount != null) data['totalCardAmount'] = totalCardAmount;
    if (totalCashValue != null) data['totalCashValue'] = totalCashValue;
    if (writeoffResult != null) data['writeoffResult'] = writeoffResult;
    return data;
  }

  factory WriteoffOrderHisStatisticsPageResponseDto.fromJson(Map<String, dynamic> json) {
    return WriteoffOrderHisStatisticsPageResponseDto(
      writeoffBy: json['writeoffBy'],
      cardType: json['cardType'],
      cardCategory: json['cardCategory'],
      totalCardAmount: json['totalCardAmount'],
      totalCashValue: json['totalCashValue'],
      writeoffResult: json['writeoffResult'],
    );
  }
}